package com.forg.mvc.core;

public enum RequestMethodEnum {

	GET("GET"),POST("POST");
	
	String name ;
	
	RequestMethodEnum(String n){
		this.name = n;
	}
	
	public String getName() {
		return name;
	}

	public static RequestMethodEnum getMethod(String m){
		for(RequestMethodEnum rm : RequestMethodEnum.values()){
			if(rm.name.equalsIgnoreCase(m)){
				return rm;
			}
		}
		
		return null;
	}
	
	
}
